const express = require('express')
const router = express.Router()

const prefix = '/user'

router.post(`${prefix}/userInfo`, (req, res) => {
  res.json({
    code: 200,
    message: 'ok',
    data: {
      userName: 'Laurant',
      userId: 9527,
      phone: 13009321546,
      auth: [0]
    }
  })
})

router.post(`${prefix}/menu`, (req, res) => {
  res.json({
    code: 200,
    message: 'ok',
    data: [
      { name: '首页', path: '/' },
      { name: '关于', path: '/about' }
    ]
  })
})

module.exports = router